//
//  GoldBeanListModel.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/9.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class GoldBeanListModel: NSObject {
    var pl_memberid = "-999"
    var pl_membername = "-999"
    var stagetext = "-999"
    var pl_beans : String?
    var pl_stage = "-999"
    var pl_id = "-999"
    var pl_addtime = "-999"


    var lg_balance = "-999"
    var lg_id = "-999"
    var lg_type = "-999"
    var lg_av_amount = "-999"
    var lg_add_time = "-999"
    var lg_desc = "-999"
    var lg_member_id = "-999"
    var lg_member_name = "-999"

    init(dic : [String : AnyObject]) {
        super.init()
        
        setValuesForKeys(dic)
        
    }
    
    
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
        
    }
    
    
    //在swift中想要打印对象要以下重写属性
    override var description: String{
        let keys = ["pl_memberid","pl_membername","stagetext","pl_beans","pl_stage","pl_id","pl_addtime"]
        let dic = dictionaryWithValues(forKeys: keys)
        return "\(dic)"
    }

}
